#include "UnFormattedObjectInputStream.h"

namespace Entities {

UnFormattedObjectInputStream::UnFormattedObjectInputStream( istream & _in ):
ObjectInputStream(_in) {}

string UnFormattedObjectInputStream::getObjectName(){
	return "";
}

string UnFormattedObjectInputStream::getObjectIdentifier(){
	return "";
}

bool UnFormattedObjectInputStream::readObject(Serializable & obj){
	obj.load(*this);
	return true;
}

bool UnFormattedObjectInputStream::readValue(string & value){
	in >> value;
	return true;
}

void UnFormattedObjectInputStream::putback(string & str){
	for (int i=str.size()-1; i>=0 ; i--)
		in.putback(str[i]);
}

string UnFormattedObjectInputStream::get(){
	string str;
	readValue(str);
	return str;
}

int UnFormattedObjectInputStream::available(){
	return 0;
}

vector<string> UnFormattedObjectInputStream::getInfos(int idAttributs){
	vector<string> empty;
	return empty;
}

}